<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo C('site_name');?></title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">

<script type="text/javascript" src="<?php echo STATICS;?>/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<?php echo STATICS;?>/js/jquery.form.min.js"></script>
<script type="text/javascript" src="<?php echo STATICS;?>/layui/lay/dest/layui.all.js"></script>
<script type="text/javascript" src="<?php echo STATICS;?>/js/regExp.js"></script>
<script type="text/javascript" src="<?php echo RES;?>/js/common.js"></script>

<link rel="stylesheet" href="<?php echo STATICS;?>/layui/css/layui.css" media="all" />
<link rel="stylesheet" href="<?php echo STATICS;?>/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="<?php echo RES;?>/css/global.css" media="all">
<link rel="stylesheet" href="<?php echo RES;?>/css/uploadProgress.css" media="all">

</head>
<body>


<div class="admin-main">
	<blockquote class="layui-elem-quote">
		<a href="<?php echo U('Chexing/index');?>" class="layui-btn layui-btn-small">
			<i class="layui-icon">&#xe608;</i> 返回列表
		</a>
		<a href="<?php echo U('Chexing/addcar',array('chexingID'=>$chexing['id']));?>" class="layui-btn layui-btn-small">
			<i class="layui-icon">&#xe608;</i> 添加具体车型
		</a>
	</blockquote>

	<fieldset class="layui-elem-field" style="margin-top: 20px;">
		<legend><?php echo ($chexing['carName']); ?></legend>
		<div class="layui-field-box">
			<form id="ajaxForm" method="post" action="<?php echo U('Chexing/del');?>">
			<table class="site-table table-hover">
				<thead>
					<tr>
						<th><input type="checkbox" id="selected-all"></th>							
						<th>车型</th>
						<th>发动机</th>
						<th>底盘</th>
						<th>CC</th>
						<th>KW</th>
						<th>类型</th>
						<th>缸数</th>
						<th>年款</th>
						<th>添加日期</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
						<td><input type="checkbox" name="selectedids[]" value="<?php echo ($vo["id"]); ?>"></td>
						<td><?php echo ($vo["name"]); ?></td>
						<td><?php echo ($vo["fadongji"]); ?></td>
						<td><?php echo ($vo["dipan"]); ?></td>
						<td><?php echo ($vo["cc"]); ?></td>						
						<td><?php echo ($vo["kw"]); ?></td>						
						<td><?php echo ($vo["type"]); ?></td>						
						<td><?php echo ($vo["guangshu"]); ?></td>						
						<td><?php echo ($vo["year"]); ?></td>						
						<td><?php echo (date('Y-m-d H:i:s',$vo["createTime"])); ?></td>
						<td>
							<a href="<?php echo U('Chexing/editcar' , array('id'=>$vo['id']));?>" class="layui-btn layui-btn-mini">编辑</a>
						</td>
					</tr><?php endforeach; endif; else: echo "" ;endif; ?>				
				</tbody>
			</table>
			</form>
		</div>
	</fieldset>
	<div class="admin-table-page">
		<div id="page" class="page"><?php echo ($page); ?></div>
	</div>
</div>
</body>
</html>